package com.lancoo.znbkxx.teacher.utils;

import java.io.File;

public class FileUtils {

    //    private String path = Environment.getExternalStorageDirectory().toString() + "/shidoe";
//    getActivity().getExternalFilesDir("").getAbsolutePath()
    public FileUtils(String path) {
        File file = new File(path);
        /**
         *如果文件夹不存在就创建
         */
        if (!file.exists()) {
            file.mkdirs();
        }
    }

    /**
     * 创建一个文件
     *
     * @param FileName 文件名
     * @return
     */
    public File createFile(String basePath, String FileName) {
        return new File(basePath, FileName);
    }

}
